<?php
namespace Home\Controller;
use Think\Controller;

/**
 * Class IndexController
 * @package Admin\Controller
 * 管理页面
 */
class IndexController extends AdminBasicController {

    public function _initialize(){
        $this->checkLogin();
    }

    public function index(){
        $this->display('index');
    }

    public function top(){
        $where['shop_id'] = session('SHOP_ID');
        $res = D("Shop")->where($where)->find();
        $this->assign('admin',$res['account']);
        unset($where);
        $this->display('top');
        $this->assign('account',session('ACCOUNT'));
        $this->display('top');
    }

    public function left(){
        $this->display('left');
    }

    public function main(){

        $this->display('main');
    }


    
}